package com.absorbx.security;

import java.util.Collection;
import java.util.List;

import org.springframework.security.userdetails.UserDetailsService;
import org.springframework.security.userdetails.UsernameNotFoundException;

public interface UserService extends UserDetailsService {

	public User loadUserByUsername(String username)
			throws UsernameNotFoundException;

	public User addUser(User user);
	public void updateUser(User user);
	public List<User> getUsers();
	public Role addRole(Role role);
	public Role getRoleByName(String name);
	public Collection<Role> getRoles();

}
